package io.github.bigbird0101.datatransfer.task.handler;

import integration.data.model.entity.DataIntegration;
import integration.data.model.entity.TaskDefinition;

import java.util.Collections;
import java.util.List;

/**
 * 单表集成任务参数处理
 */
public class BatchTaskDefHandler extends IntegrationTaskDefHandler {

    @Override
    public List<TaskDefinition> doTask(DataIntegration param) {

        TaskDefinition taskDefinition = buildTaskDefinitionJson(param);
        return Collections.singletonList(taskDefinition);
    }

}
